package com.wanwu.channel.remote.allinpay.http.req;

import com.alibaba.fastjson.annotation.JSONField;
import com.wanwu.channel.dao.entity.ChannelMerchantInfoEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @ClassName TLBaseReq
 * @Description 通联支付公共请求头
 * @Author husheng
 * @Date 2020-01-15 20:30
 */
@Data
public class TLBaseReq implements Serializable {

    private static final long serialVersionUID = -54114312940689330L;

    //商户号
    @JSONField(name = "cusid")
    private String cusId;

    //应用Id
    @JSONField(name = "appid")
    private String appId;

    //接口版本号
    @JSONField(name = "version")
    private String version;

    //随机字符串
    @JSONField(name = "randomstr")
    private String randomStr;

    private ChannelMerchantInfoEntity channelMerchantInfoEntity;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
